<h3 style="float: right">
  <a href="<?php echo $this->baseUrl(). '/country/news/list/country/' . $this->subject->getIdentity()?>"><?php echo $this->translate('View All')?></a>
  <?php if($this->canCreate):?> 
   - 
  <a href="<?php echo $this->baseUrl(). '/country/news/create/country/' . $this->subject->getIdentity()?>"><?php echo $this->translate('Add New News')?></a>	
	<?php endif;?>
</h3>

<?php if( $this->paginator->getTotalItemCount() > 0 ): ?>
  <ul class='blogs_entrylist'>
  <?php foreach ($this->paginator as $item): ?>
    <li style="float: left;">
      <span>
        <h3>
          <?php echo $this->htmlLink($item->getHref(), $item->getTitle()) ?>
        </h3>
        <div class="blog_entrylist_entry_date">
         <?php echo $this->translate('by');?> <?php echo $this->htmlLink($item->getParent(), $item->getParent()->getTitle()) ?>
          <?php echo $this->timestamp($item->creation_date) ?>
        </div>
        <a style="float:left; display: block; width: 138px;" href="<?php echo $item->getHref()?>">
        	<img src="<?php echo $item->getPhotoUrl($item->photo_id, 'thumb.normal')?>"  width="138" alt="">
        </a>
        <div class="blog_entrylist_entry_body" style="margin-left: 148px;">
          <?php echo $this->string()->truncate($this->string()->stripTags($item->body), 300) ?>
        </div>
        <?php if ($item->comment_count > 0) :?>          
          <?php echo $this->htmlLink($item->getHref(), $this->translate(array('%s comment', '%s comments', $this->comment_count), $this->locale()->toNumber($this->comment_count)) , array('class' => 'buttonlink icon_comments')) ?>
        <?php endif; ?>
      </span>
    </li>
  <?php endforeach; ?>
  </ul>

<?php elseif( $this->category || $this->tag ): ?>
  <div class="tip">
    <span>
      <?php echo $this->translate('%1$s has not published a news entry with that criteria.', $this->owner->getTitle()); ?>
    </span>
  </div>

<?php else: ?>
  <div class="tip">
    <span>
      <?php echo $this->translate('No news found'); ?>
    </span>
  </div>
<?php endif; ?>

